package com.qidianit.mes.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @ author: 周晓轩
 * @ company 起点编程
 * @ time: 2025/9/17 - 15:41
 * @ Description:
 */
@Data
@TableName("process")
public class Process {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String processCode;

    private String processName;

    private Integer isActive = 1;

    private String processDescription;

    private String remarks;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime;

    private Integer isDeleted;

    @TableField(exist = false)
    private Long creatorId;

    @TableField(exist = false)
    private Long modifierId;
}
